home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / CMAcceleration.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  4.8 KB  |  134 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        CMAcceleration.a
  3. ;
  4. ;    Contains:    ColorSync 2.0 Acceleration Component Interfaces
  5. ;
  6. ;    Version:    Technology:    ColorSync 2.0
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__CMACCELERATION__') = 'UNDEFINED' THEN
  21. __CMACCELERATION__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__MEMORY__') = 'UNDEFINED' THEN
  25.     include 'Memory.a'
  26.     ENDIF
  27. ;        include 'Types.a'                                            ;
  28. ;            include 'ConditionalMacros.a'                            ;
  29. ;        include 'MixedMode.a'                                        ;
  30.  
  31.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  32.     include 'Components.a'
  33.     ENDIF
  34.  
  35.     IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
  36.     include 'CMApplication.a'
  37.     ENDIF
  38. ;        include 'Quickdraw.a'                                        ;
  39. ;            include 'QuickdrawText.a'                                ;
  40. ;        include 'Files.a'                                            ;
  41. ;            include 'OSUtils.a'                                    ;
  42. ;            include 'Finder.a'                                        ;
  43. ;        include 'Printing.a'                                        ;
  44. ;            include 'Errors.a'                                        ;
  45. ;            include 'Dialogs.a'                                    ;
  46. ;                include 'Menus.a'                                    ;
  47. ;                include 'Controls.a'                                ;
  48. ;                include 'Windows.a'                                ;
  49. ;                    include 'Events.a'                                ;
  50. ;                include 'TextEdit.a'                                ;
  51. ;        include 'CMICCProfile.a'                                    ;
  52.  
  53. cmAccelerationInterfaceVersion    EQU        1
  54.  
  55. ;–––––––––––––––––––––––––––––––––––––– Component Type
  56. cmAccelerationComponentType        EQU        'csac'
  57.  
  58. ;–––––––––––––––––––––––––––––––––––––– Required Component function selectors
  59. cmLoadTables                    EQU        0
  60. cmCalculateData                    EQU        1
  61.  
  62. ;–––––––––––––––––––––––––––––––––––––– table data for acceleration component
  63. CMAccelerationTableData RECORD    0
  64. inputLutEntryCount         ds.l   1        ; offset: $0 (0)        ; count of entries for input lut for one dimension
  65. inputLutWordSize         ds.l   1        ; offset: $4 (4)        ; count of bits of each entry ( e.g. 16 for WORD )
  66. inputLut                 ds.l   1        ; offset: $8 (8)        ; handle to input lut
  67. outputLutEntryCount         ds.l   1        ; offset: $C (12)        ; count of entries for output lut for one dimension    
  68. outputLutWordSize         ds.l   1        ; offset: $10 (16)        ; count of bits of each entry ( e.g. 8 for BYTE )
  69. outputLut                 ds.l   1        ; offset: $14 (20)        ; handle to output lut
  70. colorLutInDim             ds.l   1        ; offset: $18 (24)        ; input dimension  ( e.g. 3 for LAB ; 4 for CMYK )
  71. colorLutOutDim             ds.l   1        ; offset: $1C (28)        ; output dimension ( e.g. 3 for LAB ; 4 for CMYK )
  72. colorLutGridPoints         ds.l   1        ; offset: $20 (32)        ; count of gridpoints for color lut ( for one Dimension )    
  73. colorLutWordSize         ds.l   1        ; offset: $24 (36)        ; count of bits of each entry ( e.g. 8 for BYTE )
  74. colorLut                 ds.l   1        ; offset: $28 (40)        ; handle to color lut
  75. inputColorSpace             ds.l   1        ; offset: $2C (44)        ; packing info for input
  76. outputColorSpace         ds.l   1        ; offset: $30 (48)        ; packing info for output
  77. userData                 ds.l   1        ; offset: $34 (52)
  78. reserved1                 ds.l   1        ; offset: $38 (56)
  79. reserved2                 ds.l   1        ; offset: $3C (60)
  80. reserved3                 ds.l   1        ; offset: $40 (64)
  81. reserved4                 ds.l   1        ; offset: $44 (68)
  82. reserved5                 ds.l   1        ; offset: $48 (72)
  83. sizeof                     EQU *            ; size:   $4C (76)
  84.                         ENDR
  85.  
  86. ; typedef struct CMAccelerationTableData  CMAccelerationTableData, *CMAccelerationTableDataPtr, **CMAccelerationTableDataHdl
  87. ;–––––––––––––––––––––––––––––––––––––– calc data for acceleration component
  88. CMAccelerationCalcData     RECORD    0
  89. pixelCount                 ds.l   1        ; offset: $0 (0)        ; count of input pixels
  90. inputData                 ds.l   1        ; offset: $4 (4)        ; input array
  91. outputData                 ds.l   1        ; offset: $8 (8)        ; output array
  92. reserved1                 ds.l   1        ; offset: $C (12)
  93. reserved2                 ds.l   1        ; offset: $10 (16)
  94. sizeof                     EQU *            ; size:   $14 (20)
  95.                         ENDR
  96.  
  97. ; typedef struct CMAccelerationCalcData  CMAccelerationCalcData, *CMAccelerationCalcDataPtr, **CMAccelerationCalcDataHdl
  98. ;————————————————————————————————————————————————————————————————————————————————————————————————
  99. ;                A c c e l e r a t i o n   C o m p o n e n t   I n t e r f a c e s
  100. ;————————————————————————————————————————————————————————————————————————————————————————————————
  101. ;
  102. ; pascal CMError CMAccelerationLoadTables(ComponentInstance CMSession, CMAccelerationTableDataPtr tableData)
  103. ;
  104.     IF ¬ GENERATINGCFM THEN
  105.         Macro
  106.         _CMAccelerationLoadTables
  107.             dc.w     $2F3C
  108.             dc.w     $0004
  109.             dc.w     $0000
  110.             moveq    #0,d0
  111.             dc.w     $A82A
  112.         EndM
  113.     ELSE
  114.         IMPORT_CFM_FUNCTION    CMAccelerationLoadTables
  115.     ENDIF
  116.  
  117. ;
  118. ; pascal CMError CMAccelerationCalculateData(ComponentInstance CMSession, CMAccelerationCalcDataPtr calcData)
  119. ;
  120.     IF ¬ GENERATINGCFM THEN
  121.         Macro
  122.         _CMAccelerationCalculateData
  123.             dc.w     $2F3C
  124.             dc.w     $0004
  125.             dc.w     $0001
  126.             moveq    #0,d0
  127.             dc.w     $A82A
  128.         EndM
  129.     ELSE
  130.         IMPORT_CFM_FUNCTION    CMAccelerationCalculateData
  131.     ENDIF
  132.  
  133.     ENDIF ; __CMACCELERATION__
  134.